import request from '@/untils/request'

export const getHomeAPI = (params) => {
  return request.post('/house/find', params)
}
// 查找城市
export const getFindCityAPI = (delflag) => {
  return request.post('/city/findAllCity', delflag)
}

// 点击房源详情
export const getHouseInfoAPI = (params) => {
  return request.get('/house/findById/', params)
}
// 成为房东
export const getBecameHostAPI = (params) => {
  return request.post('/user/submit', params)
}
// 查找用户id
export const getFindUserPAI = (params) => {
  return request.post('/user/findUserById', params)
}
// 用户查看所有订单
export const getFindOrderAPI = (params) => {
  return request.post('/bill/findByUserId', params)
}
// 用户评分
export const getRateAPI = (params) => {
  return request.post('/bill/update', params)
}
// 查看留言
export const getViewCommentsAPI = (params) => {
  return request.post('/message/findAll', params)
}
// 添加留言
export const getSendmessageAPI = (params) => {
  return request.post('/message/save', params)
}

// 用户下订单
export const getBookingAPI = (params) => {
  return request.post('/bill/save', params)
}
